package com.example.yx1.demo41;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class A41 {
    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(A41.class);

        Bean1 proxy = context.getBean(Bean1.class);

        /*
            1.演示 spring 代理的设计特点
                依赖注入和初始化阶段影响的是原始对象
                代理与目标是两个对象，二者成员变量并不共用数据
         */

        context.close();
    }
}
